package net.easyjava.base.dao;

import net.easyjava.base.bean.UserBean;

import java.util.Map;

/**
 * Created by wenxiaoning on 15/12/18.
 */
public interface UserDao {
    /**
     * 保存用户
     * @param userBean
     * @return
     */
    public int save(UserBean userBean);

    /**
     * 根据用户id查找用户
     * @param id
     * @return
     */
    public UserBean find(String id);

    /**
     * 通过名称密码找用户
     * @return
     */
    public UserBean findByParam(Map<String,Object> params);
}
